package com.wedistudio.slides.search;

import java.net.URL;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

public class ContentBody {
	private URL singleContent;
	private List<URL> multipleContent;
	private Map<String, URL> categorizedContent;

	public void setContent(URL url) {
		singleContent = url;
	}

	public void addContent(URL url) {
		if (multipleContent == null)
			multipleContent = new LinkedList<URL>();

		multipleContent.add(url);
	}

	public void setContent(String category, URL url) {
		if (categorizedContent == null)
			categorizedContent = new TreeMap<String, URL>();
		categorizedContent.put(category, url);
	}

	public URL getSingleContent() {
		return singleContent;
	}

	public List<URL> getMultipleContent() {
		return multipleContent;
	}

	public Map<String, URL> getCategorizedContent() {
		return categorizedContent;
	}

}
